package com.reborn.mall.api.model.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 商品表-实体类
 *
 * @author wu.yue
 * @since 2020/1/23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Table(name = "pms_product")
public class Product extends BaseEntity {
    private Long brandId;


    private Long productCategoryId;

    private Long freightTemplateId;

    private Long productAttributeCategoryId;

    private String name;

    private String pic;


    private String productSn;


    private Integer deleteStatus;


    private Integer publishStatus;


    private Integer newStatus;


    private Integer recommendStatus;


    private Integer verifyStatus;


    private Integer sale;

    private BigDecimal price;


    private BigDecimal promotionPrice;


    private Integer giftGrowth;


    private Integer giftPoint;


    private Integer usePointLimit;


    private String subTitle;


    private BigDecimal originalPrice;


    private Integer stock;


    private Integer lowStock;


    private String unit;


    private BigDecimal weight;


    private Integer previewStatus;


    private String serviceIds;

    private String keywords;

    private String note;


    private String albumPics;

    private String detailTitle;


    private Date promotionStartTime;


    private Date promotionEndTime;


    private Integer promotionPerLimit;


    private Integer promotionType;


    private String brandName;


    private String productCategoryName;


    private String description;

    private String detailDesc;


    private String detailHtml;


    private String detailMobileHtml;

}
